import Vue from 'vue'

import 'normalize.css/normalize.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/styles/index.scss'
import '@/common/global.css'

import App from './App'
import store from './store'
import router from './router'

// 全局属性
import api from '@/api'
import formatDate from '@/utils/format-date'
import formatData from '@/utils/format-data'
import formatFile from '@/utils/format-file'

// import '@/icons'
import '@/permission'

Vue.use(ElementUI)

Vue.prototype.$api = api
Vue.prototype.$formatData = formatData
Vue.prototype.$formatDate = formatDate
Vue.prototype.$formatFile = formatFile
Vue.prototype.$eventBus = new Vue()

Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
